<template>
	<div id="guide-hamburger" class="hamburger-container" @click="toggleClick">
		<svg-icon :icon="icon"></svg-icon>
	</div>
</template>

<script setup>
	import {
		computed
	} from 'vue'
	import {
		useStore
	} from 'vuex'

	const store = useStore()

	const icon = computed(() => {
		return store.getters.sidebarOpened ? 'hamburger-opened' : 'hamburger-closed'
	})

	const toggleClick = () => {
		store.commit('app/triggerSidebarOpened')
	}
</script>

<style lang="scss" scoped>
	.hamburger-container {
		padding: 0 16px;
	}
</style>
